﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Native.XQ.Core.Events
{
    public class HorseRace
    {
        public static int MaxStep = 5;
        public static int MinStep = 1;

        public static int AllLong = 22; 
        public static char StepDisplay = '=';

        public static double RandomEvent = 0.7;
        public static int Interval = 9;

        public static RaceMode RaceMode = RaceMode.OneWin;


        /// <summary>
        /// Group-RaceGround
        /// </summary>
        public static Dictionary<string, RaceGroud> Races { get; set; } = new Dictionary<string, RaceGroud>();
    }

    public class RaceGroud
    {
        public bool isOn { get; set; } = false;

        public List<Horse> Horses { get; set; } = new List<Horse>();
    }
    public class Horse
    {
        public string OwnerQQ { get; set; }

        public string Display { get; set; }

        public int Step = 0;

        public bool died = false;

        public string TempDisplay = "";

        public int lastStep = 0;
    }


    public enum RaceMode
    {
        OneWin,
        AllWin,
        KillMode
    }
}
